﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo03
{
    class SumUtils
    {
        public void J(int a, int b)
        {
            Console.WriteLine("两个数的和是"+(a+b));
        }
        public void D(double a, double b)
        {
            Console.WriteLine("两个小数和是"+(a+b));
        }
        public void S(string a, string b)
        {
            Console.WriteLine("两个字符串相加"+(a+b));
        }
        public void C(int a)
        {
            int sum = 0;
            for (int i = 0; i <= a; i++)
            {
                sum += i;
            }
            Console.WriteLine("1到{0}的和是"+sum,a);
        }

    }
}
